
using System.Linq;
using Core.SimpleTemp.Common;
using Core.SimpleTemp.Entitys;
using Core.SimpleTemp.Repositories.Internal;
using Microsoft.EntityFrameworkCore;

namespace Core.SimpleTemp.Repositories
{
    [AutoDi()]//注意这里 自动DI
    public class CBS_BreakRulesRepository : BaseDBRepository<CBS_BreakRules>
    //统一继承BaseDBRepository并传入`Entity`泛型参数
    {
        public CBS_BreakRulesRepository(CoreDBContext dbContext) : base(dbContext)
        {
        }
        public override IQueryable<CBS_BreakRules> QueryBase()
        {
            return base.QueryBase().Include(a=>a.CBS_BreakRulesAttachment);
        }
    }
}
